import drawQrcode from '../../utils/qrcode';

Page({
  data: {},
  onShow () {
    this.createQrcode();
  },
  createQrcode () {
    drawQrcode({
      width: 200,
      height: 200,
      canvasId: 'myQrcode',
      text: 'https://www.baidu.com/',
      callback() {}
    });
  }
})
